Ext.define('resources.view.RegisterMainDashboard', {
    extend: 'Ext.panel.Panel',
    alias: 'widget.regmaindashboard',    
    layout: {
        type: 'border'
    },
    title: '模块资源登记',

    initComponent: function() {
       var me = this;

        Ext.applyIf(me, {
            dockedItems: [
                {
                    xtype: 'toolbar',
                    dock: 'top',
                    items: [
                        {
                            xtype: 'button',
                            text: '重新缓存',
                            action:'refleshcache'
                            
                        }
                    ]
                }
            ],
            items: [
                {
                    xtype: 'tabpanel',
                    padding: '5 5 5 0',
                    activeTab: 0,
                    plain: true,
                    region: 'center',
                    items: [
                        {
                            xtype: 'regurlpanel',
							store: Ext.create('resources.store.SysUrlResourceStore')
                        },
                        {
                            xtype: 'regmenupanel',
							store: Ext.create('resources.store.SysMenuResourceStore')
                        }
                    ]
                },
                {
                    xtype: 'registertreepanel',
                    padding: '5 0 5 5',
                    store: 'RegisterModuleStore',
                    region: 'west',
                    split: true,
                    viewConfig: {

                    }
                }
            ]
        });

        me.callParent(arguments);
    }
});